﻿// =================================================================== 
// 项目说明
//====================================================================
// @Copy Right 2006-2008
// 文件： T_FormFieldInfo.cs
// 项目名称：CRM 
// 创建时间：2012/4/12
// 负责人：
// ===================================================================
using System;
using System.Collections.Generic;
using System.Text;
using DP.Data.OracleClient;
using DP.Data.SqlClient;
using System.Configuration;


namespace CRM.Entity
{
    /// <summary>
    ///T_FormFieldInfo数据实体
    /// </summary>
    [Serializable]
    [OracleTable(TableName = "T_FormFieldInfo", TableOrView = DP.Data.Common.TableType.Table, ConnectionStringKey = "SQLConnString")]
    [SqlTable(TableName = "T_FormFieldInfo", TableOrView = DP.Data.Common.TableType.Table, ConnectionStringKey = "SQLConnString")]
    public class T_FormFieldInfo_Entity
    {
        #region 变量定义
        ///<summary>
        ///字段编号
        ///</summary>
        private string _formFieldID;
        ///<summary>
        ///表单编号
        ///</summary>
        private string _formID = String.Empty;
        ///<summary>
        ///字段名称
        ///</summary>
        private string _fieldName = String.Empty;
        ///<summary>
        ///字段描述
        ///</summary>
        private string _fieldDescription = String.Empty;
        ///<summary>
        ///排序
        ///</summary>
        private int? _sortNumber;
        ///<summary>
        ///样式名称
        ///</summary>
        private string _cssClass = String.Empty;
        ///<summary>
        ///跨列数
        ///</summary>
        private int? _colSpan;
        ///<summary>
        ///最小宽度
        ///</summary>
        private int? _width;
        ///<summary>
        ///最大字符长度
        ///</summary>
        private int? _maxLenght;
        ///<summary>
        ///是否起用
        ///</summary>
        private int? _isEnabled;
        ///<summary>
        ///是否显示
        ///</summary>
        private int? _isVisible;
        ///<summary>
        ///是否是主键
        ///</summary>
        private int? _isPrimaryKey;
        ///<summary>
        ///是否回传
        ///</summary>
        private int? _isPostBack;
        ///<summary>
        ///是否插入空白行（下拉列表）
        ///</summary>
        private int? _isBlankRow;
        ///<summary>
        ///是否独占行
        ///</summary>
        private int? _exclusiveRow;
        ///<summary>
        ///格式化
        ///</summary>
        private string _fromat = String.Empty;
        ///<summary>
        ///默认值
        ///</summary>
        private string _defaultValue = String.Empty;
        ///<summary>
        ///关联字段名
        ///</summary>
        private string _relationFields = String.Empty;
        ///<summary>
        ///按钮显示文字
        ///</summary>
        private string _commandText = String.Empty;
        ///<summary>
        ///数据源类型
        ///</summary>
        private int? _dataSourceType;
        ///<summary>
        ///数据源信息
        ///</summary>
        private string _dataSourceInfo = String.Empty;
        ///<summary>
        ///控件类型
        ///</summary>
        private int? _fieldType;
        ///<summary>
        ///创建时间
        ///</summary>
        private DateTime? _createTime;
        ///<summary>
        ///创建人
        ///</summary>
        private string _createPeople = String.Empty;
        ///<summary>
        ///创建人编号
        ///</summary>
        private string _createPeopleId = String.Empty;
        ///<summary>
        ///修改时间
        ///</summary>
        private DateTime? _modifyTime;
        ///<summary>
        ///修改人
        ///</summary>
        private string _modifyPeople = String.Empty;
        ///<summary>
        ///修改人编号
        ///</summary>
        private string _modifyPeopleId = String.Empty;
        ///<summary>
        ///备注
        ///</summary>
        private string _remark = String.Empty;
        #endregion

        #region 构造函数
        ///<summary>
        ///表单字段信息
        ///</summary>
        public T_FormFieldInfo_Entity()
        {

        }
        #endregion

        #region 公共属性

        ///<summary>
        ///字段编号
        ///</summary>		
        [OracleColumn(IncrementPrimaryKey = false, PrimaryKey = true, ColumnDescription = "字段编号", ColumnName = "FormFieldID")]
        [SqlColumn(PrimaryKey = true, IncrementPrimaryKey = false, ColumnDescription = "字段编号", ColumnName = "FormFieldID")]
        public string FormFieldID
        {
            get { return _formFieldID; }
            set
            {
                _formFieldID = value;
            }

        }

        ///<summary>
        ///表单编号
        ///</summary>		
        [OracleColumn(ColumnDescription = "表单编号", ColumnName = "FormID")]
        [SqlColumn(ColumnDescription = "表单编号", ColumnName = "FormID")]
        public string FormID
        {
            get { return _formID; }
            set
            {
                _formID = value;
            }

        }

        ///<summary>
        ///字段名称
        ///</summary>		
        [OracleColumn(ColumnDescription = "字段名称", ColumnName = "FieldName")]
        [SqlColumn(ColumnDescription = "字段名称", ColumnName = "FieldName")]
        public string FieldName
        {
            get { return _fieldName; }
            set
            {
                _fieldName = value;
            }

        }

        ///<summary>
        ///字段描述
        ///</summary>		
        [OracleColumn(ColumnDescription = "字段描述", ColumnName = "FieldDescription")]
        [SqlColumn(ColumnDescription = "字段描述", ColumnName = "FieldDescription")]
        public string FieldDescription
        {
            get { return _fieldDescription; }
            set
            {
                _fieldDescription = value;
            }

        }

        ///<summary>
        ///排序
        ///</summary>		
        [OracleColumn(ColumnDescription = "排序", ColumnName = "SortNumber")]
        [SqlColumn(ColumnDescription = "排序", ColumnName = "SortNumber")]
        public int? SortNumber
        {
            get { return _sortNumber; }
            set { _sortNumber = value; }

        }

        ///<summary>
        ///样式名称
        ///</summary>		
        [OracleColumn(ColumnDescription = "样式名称", ColumnName = "CssClass")]
        [SqlColumn(ColumnDescription = "样式名称", ColumnName = "CssClass")]
        public string CssClass
        {
            get { return _cssClass; }
            set
            {
                _cssClass = value;
            }

        }

        ///<summary>
        ///跨列数
        ///</summary>		
        [OracleColumn(ColumnDescription = "跨列数", ColumnName = "ColSpan")]
        [SqlColumn(ColumnDescription = "跨列数", ColumnName = "ColSpan")]
        public int? ColSpan
        {
            get { return _colSpan; }
            set { _colSpan = value; }

        }

        ///<summary>
        ///最小宽度
        ///</summary>		
        [OracleColumn(ColumnDescription = "最小宽度", ColumnName = "Width")]
        [SqlColumn(ColumnDescription = "最小宽度", ColumnName = "Width")]
        public int? Width
        {
            get { return _width; }
            set { _width = value; }

        }

        ///<summary>
        ///最大字符长度
        ///</summary>		
        [OracleColumn(ColumnDescription = "最大字符长度", ColumnName = "MaxLenght")]
        [SqlColumn(ColumnDescription = "最大字符长度", ColumnName = "MaxLenght")]
        public int? MaxLenght
        {
            get { return _maxLenght; }
            set { _maxLenght = value; }

        }

        ///<summary>
        ///是否起用
        ///</summary>		
        [OracleColumn(ColumnDescription = "是否起用", ColumnName = "IsEnabled")]
        [SqlColumn(ColumnDescription = "是否起用", ColumnName = "IsEnabled")]
        public int? IsEnabled
        {
            get { return _isEnabled; }
            set { _isEnabled = value; }

        }

        ///<summary>
        ///是否显示
        ///</summary>		
        [OracleColumn(ColumnDescription = "是否显示", ColumnName = "IsVisible")]
        [SqlColumn(ColumnDescription = "是否显示", ColumnName = "IsVisible")]
        public int? IsVisible
        {
            get { return _isVisible; }
            set { _isVisible = value; }

        }

        ///<summary>
        ///是否是主键
        ///</summary>		
        [OracleColumn(ColumnDescription = "是否是主键", ColumnName = "IsPrimaryKey")]
        [SqlColumn(ColumnDescription = "是否是主键", ColumnName = "IsPrimaryKey")]
        public int? IsPrimaryKey
        {
            get { return _isPrimaryKey; }
            set { _isPrimaryKey = value; }

        }

        ///<summary>
        ///是否回传
        ///</summary>		
        [OracleColumn(ColumnDescription = "是否回传", ColumnName = "IsPostBack")]
        [SqlColumn(ColumnDescription = "是否回传", ColumnName = "IsPostBack")]
        public int? IsPostBack
        {
            get { return _isPostBack; }
            set { _isPostBack = value; }

        }

        ///<summary>
        ///是否插入空白行（下拉列表）
        ///</summary>		
        [OracleColumn(ColumnDescription = "是否插入空白行（下拉列表）", ColumnName = "IsBlankRow")]
        [SqlColumn(ColumnDescription = "是否插入空白行（下拉列表）", ColumnName = "IsBlankRow")]
        public int? IsBlankRow
        {
            get { return _isBlankRow; }
            set { _isBlankRow = value; }

        }

        ///<summary>
        ///是否独占行
        ///</summary>		
        [OracleColumn(ColumnDescription = "是否独占行", ColumnName = "ExclusiveRow")]
        [SqlColumn(ColumnDescription = "是否独占行", ColumnName = "ExclusiveRow")]
        public int? ExclusiveRow
        {
            get { return _exclusiveRow; }
            set { _exclusiveRow = value; }

        }

        ///<summary>
        ///格式化
        ///</summary>		
        [OracleColumn(ColumnDescription = "格式化", ColumnName = "Fromat")]
        [SqlColumn(ColumnDescription = "格式化", ColumnName = "Fromat")]
        public string Fromat
        {
            get { return _fromat; }
            set
            {
                _fromat = value;
            }

        }

        ///<summary>
        ///默认值
        ///</summary>		
        [OracleColumn(ColumnDescription = "默认值", ColumnName = "DefaultValue")]
        [SqlColumn(ColumnDescription = "默认值", ColumnName = "DefaultValue")]
        public string DefaultValue
        {
            get { return _defaultValue; }
            set
            {
                _defaultValue = value;
            }

        }

        ///<summary>
        ///关联字段名
        ///</summary>		
        [OracleColumn(ColumnDescription = "关联字段名", ColumnName = "RelationFields")]
        [SqlColumn(ColumnDescription = "关联字段名", ColumnName = "RelationFields")]
        public string RelationFields
        {
            get { return _relationFields; }
            set
            {
                _relationFields = value;
            }

        }

        ///<summary>
        ///按钮显示文字
        ///</summary>		
        [OracleColumn(ColumnDescription = "按钮显示文字", ColumnName = "CommandText")]
        [SqlColumn(ColumnDescription = "按钮显示文字", ColumnName = "CommandText")]
        public string CommandText
        {
            get { return _commandText; }
            set
            {
                _commandText = value;
            }

        }

        ///<summary>
        ///数据源类型
        ///</summary>		
        [OracleColumn(ColumnDescription = "数据源类型", ColumnName = "DataSourceType")]
        [SqlColumn(ColumnDescription = "数据源类型", ColumnName = "DataSourceType")]
        public int? DataSourceType
        {
            get { return _dataSourceType; }
            set { _dataSourceType = value; }

        }

        ///<summary>
        ///数据源信息
        ///</summary>		
        [OracleColumn(ColumnDescription = "数据源信息", ColumnName = "DataSourceInfo")]
        [SqlColumn(ColumnDescription = "数据源信息", ColumnName = "DataSourceInfo")]
        public string DataSourceInfo
        {
            get { return _dataSourceInfo; }
            set
            {
                _dataSourceInfo = value;
            }

        }

        ///<summary>
        ///控件类型
        ///</summary>		
        [OracleColumn(ColumnDescription = "控件类型", ColumnName = "FieldType")]
        [SqlColumn(ColumnDescription = "控件类型", ColumnName = "FieldType")]
        public int? FieldType
        {
            get { return _fieldType; }
            set { _fieldType = value; }

        }

        ///<summary>
        ///创建时间
        ///</summary>		
        [OracleColumn(ColumnDescription = "创建时间", ColumnName = "CreateTime")]
        [SqlColumn(ColumnDescription = "创建时间", ColumnName = "CreateTime")]
        public DateTime? CreateTime
        {
            get { return _createTime; }
            set { _createTime = value; }

        }

        ///<summary>
        ///创建人
        ///</summary>		
        [OracleColumn(ColumnDescription = "创建人", ColumnName = "CreatePeople")]
        [SqlColumn(ColumnDescription = "创建人", ColumnName = "CreatePeople")]
        public string CreatePeople
        {
            get { return _createPeople; }
            set
            {
                _createPeople = value;
            }

        }

        ///<summary>
        ///创建人编号
        ///</summary>		
        [OracleColumn(ColumnDescription = "创建人编号", ColumnName = "CreatePeopleId")]
        [SqlColumn(ColumnDescription = "创建人编号", ColumnName = "CreatePeopleId")]
        public string CreatePeopleId
        {
            get { return _createPeopleId; }
            set
            {
                _createPeopleId = value;
            }

        }

        ///<summary>
        ///修改时间
        ///</summary>		
        [OracleColumn(ColumnDescription = "修改时间", ColumnName = "ModifyTime")]
        [SqlColumn(ColumnDescription = "修改时间", ColumnName = "ModifyTime")]
        public DateTime? ModifyTime
        {
            get { return _modifyTime; }
            set { _modifyTime = value; }

        }

        ///<summary>
        ///修改人
        ///</summary>		
        [OracleColumn(ColumnDescription = "修改人", ColumnName = "ModifyPeople")]
        [SqlColumn(ColumnDescription = "修改人", ColumnName = "ModifyPeople")]
        public string ModifyPeople
        {
            get { return _modifyPeople; }
            set
            {
                _modifyPeople = value;
            }

        }

        ///<summary>
        ///修改人编号
        ///</summary>		
        [OracleColumn(ColumnDescription = "修改人编号", ColumnName = "ModifyPeopleId")]
        [SqlColumn(ColumnDescription = "修改人编号", ColumnName = "ModifyPeopleId")]
        public string ModifyPeopleId
        {
            get { return _modifyPeopleId; }
            set
            {
                _modifyPeopleId = value;
            }

        }

        ///<summary>
        ///备注
        ///</summary>		
        [OracleColumn(ColumnDescription = "备注", ColumnName = "Remark")]
        [SqlColumn(ColumnDescription = "备注", ColumnName = "Remark")]
        public string Remark
        {
            get { return _remark; }
            set
            {
                _remark = value;
            }

        }


        #endregion

    }
}
